package com.weirong.smartvault.dao;

import com.weirong.smartvault.entity.Dict;
import com.weirong.smartvault.entity.EquipmentErrorLog;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Qualifier("dictRepository")
public interface DictRepository extends JpaSpecificationExecutor<Dict>,PagingAndSortingRepository<Dict, Integer> {

    public Dict findDictByCode(String code);

    public List<Dict> findDictByParentId(int parentId);

    public Dict findDictByDescription(String description);

    public Dict findByName(String name);
}

